package cn.jxufe.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.jxufe.entity.SeedType;
import cn.jxufe.service.SeedTypeService;

/***
 * 获取种子的类型
 * @author Banner
 *
 */
@Controller
@RequestMapping("seedType")
public class SeedTypeController {
	@Autowired
    private SeedTypeService seedTypeService;
	/***
	 * 获取所有的种子类型.
	 * @return 种子类型信息列表
	 */
	@RequestMapping("data")
	@ResponseBody
	public List<SeedType> data() {
		return seedTypeService.data();
	}
}
